<?php
/**
 * 客户端应用相关模块控制器
 * 
 */
class appAction extends apiAction {
	
	/**
	 * 检查应用版本信息
	 */
	public function version(){
		$version = I('version');
		
		$res = D('version')->order('updateTime DESC')->find();
		
		if(empty($version) || $version != $res['version']){
			$data['url'] =  C('pin_attach_path').'version/'.$res['downLoad'];
		}else{
			$data['url'] = '';
		}
		
		$this->ajaxReturn(200, L('success'), $data);
	}
	
	/**
	 * 系统提醒信息
	 */
	public function msg(){
		$data = array();
		
		//获得冲突申诉系统提示信息
		$data[] = D('salesDispute')->getMsg();
		
		$this->ajaxReturn(200, L('success'), $data);
	}
}

/* End of file appAction.class.php */